/*
   File: SsoTokenService.java
   Copyright 2004-2010 99Bill Corporation. All rights reserved.
   Created at   2011-8-30
   Author       zhe.yang
   Changed at   2011-8-30
 */

package com.bill99.golden.inf.sso.mdp;

import com.bill99.golden.inf.sso.mdp.dto.CreateTokenRequestDto;
import com.bill99.golden.inf.sso.mdp.dto.DestroyTokenRequestDto;
import com.bill99.golden.inf.sso.mdp.dto.RefreshTokenTimeRequestDto;
import com.bill99.golden.inf.sso.mdp.dto.ValidateTokenRequestDto;
import com.bill99.golden.inf.sso.mdp.dto.ValidateTokenResponseDto;

/**
 * SSO服务接口
 */

public interface SsoTokenService {

	/**
	 * @param request
	 *            创建令牌请求
	 * @return 令牌
	 */
	String createToken(CreateTokenRequestDto request);

	ValidateTokenResponseDto validateToken(ValidateTokenRequestDto request);

	void destroyToken(DestroyTokenRequestDto request);

	void refreshTokenTime(RefreshTokenTimeRequestDto request);
}
